package com.zjsru.fallback;

import com.zjsru.clients.OrderClient;
import com.zjsru.pojo.Result;
import org.springframework.stereotype.Component;

@Component
public class OrderClientFallback implements OrderClient {
    @Override
    public Result queryOrderByUserId(Long userId) {
        return Result.error(500,"订单服务异常");
    }
}
